home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / pippki.jar / content / pippki / pref-masterpass.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-10-30  |  5.1 KB  |  127 lines

  1. <?xml version="1.0"?> 
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is mozilla.org code.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Netscape Communications Corp.
  19.    - Portions created by the Initial Developer are Copyright (C) 2001
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Ian McGreer <mcgreer@netscape.com>
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the GPL or the LGPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK ***** -->
  38.  
  39. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  40.  
  41. <!DOCTYPE page [
  42.   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  43.   <!ENTITY % prefPass SYSTEM "chrome://pippki/locale/pref-masterpass.dtd">
  44.   %brandDTD;
  45.   %prefPass;
  46. ]>
  47.  
  48. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  49.       onload="parent.initPanel('chrome://pippki/content/pref-masterpass.xul'); onMasterPasswordLoad();"
  50.       headertitle="&pref.masterpass.title;">
  51.  
  52.   <script type="application/x-javascript" src="chrome://pippki/content/pref-masterpass.js"/>
  53.  
  54.   <!-- List elements to manage for prefs -->
  55.   <script type="application/x-javascript">
  56.   <![CDATA[
  57.     var _elementIDs = ["askEveryTimeHidden",
  58.                        "changePasswordButton",
  59.                        "resetPasswordButton",
  60.                        "passwordAskTimes",
  61.                        "passwordTimeout"];
  62.   ]]>
  63.   </script>
  64.             
  65.   <!-- Change Password -->
  66.   <groupbox>
  67.     <caption label="&changepassword.caption;"/>
  68.     <description>&changepassword.text;</description>
  69.     <hbox align="center">
  70.       <button label="&changepassword.button;"
  71.               oncommand="ChangePW();"
  72.               id="changePasswordButton"
  73.               accesskey="&changepassword.accesskey;"
  74.               prefstring="security.disable_button.changePassword"/>
  75.     </hbox>
  76.   </groupbox>
  77.  
  78.   <!-- Password Prefs -->
  79.   <groupbox>
  80.  
  81.     <checkbox id="askEveryTimeHidden"
  82.               prefstring="signon.expireMasterPassword"
  83.               hidden="true"/>
  84.  
  85.     <caption label="&managepassword.caption;"/>
  86.     <description>&managepassword.text;</description>
  87.     <hbox align="center">
  88.       <radiogroup id="passwordAskTimes"
  89.                   prefstring="security.ask_for_password"
  90.                   flex="1">
  91.         <!-- note that these values are different than what NSS uses, which
  92.              are (0, -1, 1) respectively -->
  93.         <radio value="0" label="&managepassword.askfirsttime;" id="askFirstTime"
  94.                accesskey="&managepassword.askfirsttime.accesskey;"
  95.                style="margin: 0px;" oncommand="changePasswordSettings(false);"/>
  96.         <radio value="1" label="&managepassword.askeverytime;" id="askEveryTime"
  97.                accesskey="&managepassword.askeverytime.accesskey;"
  98.                style="margin: 0px;" oncommand="changePasswordSettings(false);"/>
  99.         <hbox align="center">
  100.           <radio value="2" label="&managepassword.asktimeout;" id="askTimeout"
  101.                  accesskey="&managepassword.asktimeout.accesskey;"
  102.                  style="margin: 0px;" oncommand="changePasswordSettings(true);"/>
  103.           <textbox id="passwordTimeout" size="4"
  104.                    preftype="int"
  105.                    prefstring="security.password_lifetime"
  106.                    oninput="changePasswordSettings(false);"/>
  107.           <label value="&managepassword.timeout.unit;" style="margin: 4px;"/>
  108.         </hbox>
  109.       </radiogroup>
  110.     </hbox>
  111.   </groupbox>
  112.  
  113.   <!-- Reset Password -->
  114.   <groupbox>
  115.     <caption label="&resetpassword.caption;"/>
  116.     <description>&resetpassword.text;</description>
  117.     <hbox align="center">
  118.       <button label="&resetpassword.button;"
  119.               oncommand="ResetPW();"
  120.               id="resetPasswordButton"
  121.               accesskey="&resetpassword.accesskey;"
  122.               prefstring="security.disable_button.resetPassword"/>
  123.     </hbox>
  124.   </groupbox>
  125.  
  126. </page>
  127.